package tech.jdbc.entity;

/**
 * Create with Intellij IDEA
 *
 * @Author Q
 * @date 2021/11/25/15:45
 */
public class Teacher {
    private Integer id;
    private String name;
    private Integer Cid;
    private String CName;

    public Teacher() {
    }

    public Teacher(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Teacher(Integer id, String name, Integer cid, String CName) {
        this.id = id;
        this.name = name;
        Cid = cid;
        this.CName = CName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCid() {
        return Cid;
    }

    public void setCid(Integer cid) {
        Cid = cid;
    }

    public String getCName() {
        return CName;
    }

    public void setCName(String CName) {
        this.CName = CName;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", Cid=" + Cid +
                ", CName='" + CName + '\'' +
                '}';
    }
}
